<%@page contentType="text/html" pageEncoding="UTF-8" import="java.io.*, java.sql.*, javax.sql.*"%>
<%

    Connection con = com.elookinto.wordlist.Util.getCon();
    String listName = request.getParameter("listName");
    String uid = (String) session.getAttribute("uid");
    if (listName == null) {
        listName = "%";
    }
    if (uid == null || listName.startsWith("Grade")) {
        uid = "admin";
    }

    PreparedStatement st = null;
    st = con.prepareStatement("Select txt from note where listname=? and uid=?");
    st.setString(1, listName);
    st.setString(2, uid);
    ResultSet rs = st.executeQuery();
     if (rs.next()) out.print(rs.getString(1));
    con.close(); 
%>
anything